home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / gfx / conv / jpegV5Asrc.lha / jpeg-5a / makefile.cfg < prev    next >
Makefile  |  1994-12-08  |  12KB  |  240 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # makefile.cfg is edited by configure to produce a custom Makefile.
  4.  
  5. # Read installation instructions before saying "make" !!
  6.  
  7. # For compiling with source and object files in different directories.
  8. srcdir = @srcdir@
  9. VPATH = @srcdir@
  10.  
  11. # Where to install the programs and man pages.
  12. prefix = @prefix@
  13. exec_prefix = @exec_prefix@
  14. bindir = $(exec_prefix)/bin
  15. libdir = $(exec_prefix)/lib
  16. includedir = $(prefix)/include
  17. binprefix =
  18. manprefix =
  19. manext = 1
  20. mandir = $(prefix)/man/man$(manext)
  21.  
  22. # The name of your C compiler:
  23. CC= @CC@
  24.  
  25. # You may need to adjust these cc options:
  26. CFLAGS= @CFLAGS@ @CPPFLAGS@ -I$(srcdir)
  27. # Generally, we recommend defining any configuration symbols in jconfig.h,
  28. # NOT via -D switches here.
  29. # However, any special defines for ansi2knr.c may be included here:
  30. ANSI2KNRFLAGS= @ANSI2KNRFLAGS@
  31.  
  32. # Link-time cc options:
  33. LDFLAGS= @LDFLAGS@
  34.  
  35. # To link any special libraries, add the necessary -l commands here.
  36. LDLIBS= @LIBS@
  37.  
  38. # Put here the object file name for the correct system-dependent memory
  39. # manager file.  For Unix this is usually jmemnobs.o, but you may want
  40. # to use jmemansi.o or jmemname.o if you have limited swap space.
  41. SYSDEPMEM= @MEMORYMGR@
  42.  
  43. # miscellaneous OS-dependent stuff
  44. SHELL= /bin/sh
  45. # linker
  46. LN= $(CC)
  47. # file deletion command
  48. RM= rm -f
  49. # file rename command
  50. MV= mv
  51. # library (.a) file creation command
  52. AR= ar rc
  53. # second step in .a creation (use "touch" if not needed)
  54. AR2= @RANLIB@
  55. # installation program
  56. INSTALL= @INSTALL@
  57. INSTALL_PROGRAM= @INSTALL_PROGRAM@
  58. INSTALL_DATA= @INSTALL_DATA@
  59.  
  60. # End of configurable options.
  61.  
  62.  
  63. # source files: JPEG library proper
  64. LIBSOURCES= jcapi.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \
  65.         jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \
  66.         jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \
  67.         jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \
  68.         jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \
  69.         jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \
  70.         jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c
  71. # source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom
  72. APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \
  73.         rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \
  74.         wrjpgcom.c
  75. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  76. # files included by source files
  77. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  78.         jpeglib.h jversion.h cdjpeg.h cderror.h
  79. # documentation, test, and support files
  80. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \
  81.         example.c libjpeg.doc structure.doc coderules.doc filelist.doc \
  82.         change.log
  83. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.manx \
  84.         makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \
  85.         makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt
  86. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  87.         jconfig.mc6 jconfig.dj jconfig.vms
  88. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  89. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  90. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  91.         $(OTHERFILES) $(TESTFILES)
  92. # library object files common to compression and decompression
  93. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  94. # compression library object files
  95. CLIBOBJECTS= jcapi.o jcparam.o jdatadst.o jcmaster.o jcmarker.o jcmainct.o \
  96.         jcprepct.o jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o \
  97.         jfdctfst.o jfdctflt.o jfdctint.o
  98. # decompression library object files
  99. DLIBOBJECTS= jdapi.o jdatasrc.o jdmaster.o jdmarker.o jdmainct.o jdcoefct.o \
  100.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  101.         jdhuff.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  102. # These objectfiles are included in libjpeg.a
  103. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  104. # object files for cjpeg and djpeg applications (excluding library files)
  105. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o
  106. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o
  107.  
  108.  
  109. all: @ANSI2KNR@ libjpeg.a cjpeg djpeg rdjpgcom wrjpgcom
  110.  
  111. # This rule causes ansi2knr to be invoked.
  112. @ISANSICOM@.c.o:
  113. @ISANSICOM@    ./ansi2knr $(srcdir)/$*.c T$*.c
  114. @ISANSICOM@    $(CC) $(CFLAGS) -c T$*.c
  115. @ISANSICOM@    $(RM) T$*.c $*.o
  116. @ISANSICOM@    $(MV) T$*.o $*.o
  117.  
  118. ansi2knr: ansi2knr.c
  119.     $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
  120.  
  121. libjpeg.a: @ANSI2KNR@ $(LIBOBJECTS)
  122.     $(RM) libjpeg.a
  123.     $(AR) libjpeg.a  $(LIBOBJECTS)
  124.     $(AR2) libjpeg.a
  125.  
  126. cjpeg: $(COBJECTS) libjpeg.a
  127.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  128.  
  129. djpeg: $(DOBJECTS) libjpeg.a
  130.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  131.  
  132. rdjpgcom: rdjpgcom.o
  133.     $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  134.  
  135. wrjpgcom: wrjpgcom.o
  136.     $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  137.  
  138. jconfig.h: jconfig.doc
  139.     echo You must prepare a system-dependent jconfig.h file.
  140.     echo Please read the installation directions in install.doc.
  141.     exit 1
  142.  
  143. install: cjpeg djpeg rdjpgcom wrjpgcom
  144.     $(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
  145.     $(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
  146.     $(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom
  147.     $(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom
  148.     $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
  149.     $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
  150.     $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
  151.     $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)
  152.  
  153. install-lib: libjpeg.a jconfig.h
  154.     $(INSTALL_DATA) libjpeg.a $(libdir)/$(binprefix)libjpeg.a
  155.     $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
  156.     $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
  157.     $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
  158.     $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h
  159.  
  160. clean:
  161.     $(RM) *.o cjpeg djpeg libjpeg.a rdjpgcom wrjpgcom ansi2knr
  162.     $(RM) core testout.* config.log config.status
  163.  
  164. distribute:
  165.     $(RM) jpegsrc.tar*
  166.     tar cvf jpegsrc.tar $(DISTFILES)
  167.     compress -v jpegsrc.tar
  168.  
  169. test: cjpeg djpeg
  170.     $(RM) testout.ppm testout.gif testout.jpg
  171.     ./djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  172.     ./djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  173.     ./cjpeg -dct int -outfile testout.jpg  testimg.ppm
  174.     cmp testimg.ppm testout.ppm
  175.     cmp testimg.gif testout.gif
  176.     cmp testimg.jpg testout.jpg
  177.  
  178. check: test
  179.  
  180. # GNU Make likes to know which target names are not really files to be made:
  181. .PHONY: all install install-lib clean distribute test check
  182.  
  183.  
  184. jcapi.o : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jccoefct.o : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jccolor.o : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jcdctmgr.o : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  188. jchuff.o : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jcmainct.o : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jcmarker.o : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jcomapi.o : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jcparam.o : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jcprepct.o : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  195. jcsample.o : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  196. jdapi.o : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  197. jdatasrc.o : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  198. jdatadst.o : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  199. jdcoefct.o : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  200. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  201. jddctmgr.o : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  202. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  203. jdmainct.o : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jdmarker.o : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  206. jdpostct.o : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  207. jdsample.o : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  208. jerror.o : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  209. jutils.o : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  210. jfdctfst.o : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  211. jfdctflt.o : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  212. jfdctint.o : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  213. jidctfst.o : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  214. jidctflt.o : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  215. jidctint.o : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  216. jidctred.o : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  217. jquant1.o : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  218. jquant2.o : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  219. jdmerge.o : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  220. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  221. jmemansi.o : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  222. jmemname.o : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  223. jmemnobs.o : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  224. jmemdos.o : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  225. cjpeg.o : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  226. djpeg.o : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  227. rdcolmap.o : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  228. rdppm.o : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  229. wrppm.o : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  230. rdgif.o : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  231. wrgif.o : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  232. rdtarga.o : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  233. wrtarga.o : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  234. rdbmp.o : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  235. wrbmp.o : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  236. rdrle.o : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  237. wrrle.o : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  238. rdjpgcom.o : rdjpgcom.c jinclude.h jconfig.h
  239. wrjpgcom.o : wrjpgcom.c jinclude.h jconfig.h
  240.